<?php

/**
 * 
 * @author Administrator
 *
 */
class IosController extends CodeController {

	public function getUrl(){
		$packet = PubRequest::R('packet');
		$version = PubRequest::R('version');
		
		$json_arr = IosService::getUrl($packet,$version);
		ApiBaseService::doLog($_POST, $json_arr);
		exit(json_encode($json_arr));
	}
	
	public function getRechargeUrl(){
		$channel = PubRequest::R('channel');
		$packet = PubRequest::R('packet');
		$json_arr = IosService::getRechargeUrl($channel,$packet);
		ApiBaseService::doLog($_POST, $json_arr);
		exit(json_encode($json_arr));
	}

}